<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%@ include file="/WEB-INF/jsp/common/meta.jsp"%>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>IP黑白名单</title>
</head>
<body>
<div class="easyui-layout" fit=true>
    <div data-options="region:'center',title:'IP黑白名单',border:false" style="padding: 0px;">
        <table singleSelect=true fit=true id="SysBlackWhiteList_datagrid"
               fitColumns=true rownumbers="true" toolbar="#SysBlackWhiteList_toolbar" pagination="true"
               pageSize="${defaultPageSize}" pageList="${defaultPageList}"
               data-options="url:'${ctx}/sys/sysBlackWhiteList/list'">
            <thead>
            <tr>
            	<th data-options="field:'blackWhiteId',hidden:true,width:160">主键</th>
<!--                 <th data-options="field:'tenantId',width:100">租户ID</th> -->
                <th data-options="field:'listType',width:100,formatter:HgUtil.fieldFormatterFunc('blackOrWhite')" align=center
               		editor="{type:'combobox',options:{url:'${ctx}/sys/common/sysDict/itemList/blackOrWhite',
                         prompt: '---请选择---',panelHeight:'auto',textField:'itemName',valueField:'itemValue', mode:'remote',editable:false,required:true}}"
               		>名单类型</th>
                <th data-options="field:'ipRangeStart',width:150"
                	editor="{type:'textbox',options:{required:true,missingMessage:'此输入项为必填项'}}">IP范围开始</th>
                <th data-options="field:'ipRangeEnd',width:150" 
                	editor="{type:'textbox',options:{required:true,missingMessage:'此输入项为必填项'}}">IP范围结束</th>
                <th data-options="field:'crtType',width:100,formatter:HgUtil.fieldFormatterFunc('crtTypeBlackWhiteList')" align=center
                	>数据来源</th>
                <th data-options="field:'scenarioType',width:100,formatter:HgUtil.fieldFormatterFunc('scenarioType')"  align=center
                	editor="{type:'combobox',options:{required:true,url:'${ctx}/sys/common/sysDict/itemList/scenarioType',
                         prompt: '---请选择---',panelHeight:'auto',textField:'itemName',valueField:'itemValue', mode:'remote',editable:false}}"
                	>应用场景</th>
                <%-- <th data-options="field:'timeLimitType',width:80,formatter:HgUtil.fieldFormatterFunc('timeLimitType')" align=center
                	editor="{type:'combobox',options:{required:true,url:'${ctx}/sys/common/sysDict/itemList/timeLimitType',
                         prompt: '---请选择---',panelHeight:'auto',textField:'itemName',valueField:'itemValue', mode:'remote',editable:false}}"
                	>时效</th> --%>
                <th data-options="field:'beginTime',width:250,formatter:HgUtil.formatToDateTime" align=center
                	editor="{type:'wdate',options:{required:true,missingMessage:'此输入项为必填项'}}">开始时间</th>
                <th data-options="field:'endTime',width:250,formatter:HgUtil.formatToDateTime" align=center
                	editor="{type:'wdate',options:{required:true,missingMessage:'此输入项为必填项'}}">结束时间</th>
                <th data-options="field:'sortNo',width:80" align=center editor="{type:'textbox',options:{required:true,missingMessage:'此输入项为必填项'}}">排序</th>
                <th data-options="field:'descr',width:150" editor="{type:'textbox'}">描述</th>
                <th data-options="field:'isValid',width:100,formatter:HgUtil.fieldFormatterFunc('trueOrFalse')" align=center
                	>是否在用</th>
                <th data-options="field:'lastExpireTime',width:150,formatter:HgUtil.formatToDateTime">上次失效时间</th>
                <th data-options="field:'crtTime',width:150,formatter:HgUtil.formatToDateTime">创建时间</th>
            </tr>
            </thead>
        </table>
        <div id="SysBlackWhiteList_toolbar" tag=listen_hotkey>
            <table>
                <tr>
                    <td><a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon_add1" plain="true" tag="add">新建</a></td>
                    <td><a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon_save1" plain="true" tag="save">保存</a></td>
                    <td><a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon_delete" plain="true" tag="del">删除</a></td>
                    <td><a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon_undo',plain:true" tag="undo">撤销</a></td>
                    <td><a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon_auto_colorful__cancel" plain="true" tag="expire">禁用</a></td>
                    <td><a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon_auto_colorful__ok" plain="true" tag="on">启用</a></td>
                    <td><div class="datagrid-btn-separator"></div></td>	
                    <td><a class="easyui-linkbutton" iconCls="icon_clear" plain="true" tag="clear">清空查询</a></td>
                </tr>
            </table>
        </div>
    </div>
</div>
<script type="text/javascript" src="${ctx}/static/js/sys/blackWhiteList/sysBlackWhiteList_view.js?jsTimer=${jsTimer}"></script>
</body>

</html>